class BasicEstateModel {
  int? id;
  int? substationId;
  String? name;
  String? address;
  String? longitude;
  String? latitude;
  int? population;
  num? area;
  String? linkman;
  String? linkphone;
  String? linkemail;
  int? companyId;
  int? stationId;
  int? boilerId;
  num? listOrder;
  int? status;
  int? createTime;
  int? updateTime;
  int? deleteTime;
  String? substationName;
  String? companyName;
  String? stationName;
  bool? showMap;

  BasicEstateModel({
    this.id,
    this.substationId,
    this.name,
    this.address,
    this.longitude,
    this.latitude,
    this.population,
    this.area,
    this.linkman,
    this.linkphone,
    this.linkemail,
    this.companyId,
    this.stationId,
    this.boilerId,
    this.listOrder,
    this.status,
    this.createTime,
    this.updateTime,
    this.deleteTime,
    this.substationName,
    this.companyName,
    this.stationName,
    this.showMap,
  });

  BasicEstateModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    substationId = json['substation_id'];
    name = json['name'];
    address = json['address'];
    longitude = json['longitude'];
    latitude = json['latitude'];
    population = json['population'];
    area = json['area'];
    linkman = json['linkman'];
    linkphone = json['linkphone'];
    linkemail = json['linkemail'];
    companyId = json['company_id'];
    stationId = json['station_id'];
    boilerId = json['boiler_id'];
    listOrder = json['list_order'];
    status = json['status'];
    createTime = json['create_time'];
    updateTime = json['update_time'];
    deleteTime = json['delete_time'];
    substationName = json['substation_name'];
    companyName = json['company_name'];
    stationName = json['station_name'];
    showMap = json['show_map'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = {};
    data['id'] = id;
    data['substation_id'] = substationId;
    data['name'] = name;
    data['address'] = address;
    data['longitude'] = longitude;
    data['latitude'] = latitude;
    data['population'] = population;
    data['area'] = area;
    data['linkman'] = linkman;
    data['linkphone'] = linkphone;
    data['linkemail'] = linkemail;
    data['company_id'] = companyId;
    data['station_id'] = stationId;
    data['boiler_id'] = boilerId;
    data['list_order'] = listOrder;
    data['status'] = status;
    data['create_time'] = createTime;
    data['update_time'] = updateTime;
    data['delete_time'] = deleteTime;
    data['substation_name'] = substationName;
    data['company_name'] = companyName;
    data['station_name'] = stationName;
    data['show_map'] = showMap;
    return data;
  }
}
